package com.flower.pojo;

/**
 * 购物项
 */
public class CartItem {
	private int gid; // 加入购物车的编号
	private Product product;// 商品
	private int uid; // 用户编号
	private int pnum; // 数量
	private double subTotal; // 小计（数量*商品单价）

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public int getPnum() {
		return pnum;
	}

	public void setPnum(int pnum) {
		this.pnum = pnum;
	}

	public double getSubTotal() {
		return subTotal;
	}

	public void setSubTotal(double subTotal) {
		this.subTotal = subTotal;
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	@Override
	public String toString() {
		return "CartItem [gid=" + gid + ", product=" + product + ", uid=" + uid
				+ ", pnum=" + pnum + ", subTotal=" + subTotal + "]";
	}

}
